﻿using Orchard.ContentManagement.MetaData;
using Orchard.Core.Contents.Extensions;
using Orchard.Data.Migration;


namespace Hazza.UserInput
{
    public class Migrations : DataMigrationImpl
    {
        public int Create()
        {
            ContentDefinitionManager.AlterPartDefinition("HazzaInputPart", part => part
                .Attachable()
                .WithDescription("Changes a content type into a user input."));

            ContentDefinitionManager.AlterPartDefinition("TextInputPart", part => part
                .Attachable()
                .WithDescription("Displays a text input on the content type, don't forget to add \"Hazza Input\" as well."));

            return 1;
        }
    }
}